package com.hcy.order_domain.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hcy.ordermodel.dto.response.HomeInfoResponseDTO;
import com.hcy.order_domain.entity.ServerOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hcy.rabbitbasicmodel.dto.HomeData;
import com.hcy.ordermodel.dto.response.OrderInfoResponseDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author hcy
 * @since 2021-12-23
 */
public interface ServerOrderMapper extends BaseMapper<ServerOrder> {

    HomeInfoResponseDTO getDriverTodayInfo(@Param("driverId") Integer driverId);

    List<OrderInfoResponseDTO> getDriverRecvOrderInfo(@Param("driverId") Integer driverId);

    Page<OrderInfoResponseDTO> getArriveOrderList(Page<OrderInfoResponseDTO> page,@Param("driverId") String driverId);

    List<HomeData> getHomeData();
}
